﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1.Classes
{
    internal class Driver
    {
        private string name;
        private License license;
        private Car car;

        public Driver(string name,Car car, License license)
        {
            this.name = name;
            this.license = license;
            this.car = car;
            Console.WriteLine($"the Driver {name} is Being constructed");
        }

        public void Drive()
        {
            Console.WriteLine($"my name is {name},my license id is {license.Id},I'm driving {car.Name}..");
        }
    }
}
